package com.umgsai.wx.backend.dao;

import com.umgsai.wx.backend.dao.data.QrsystemSerialCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SerialCodeMapper {

    int insert(QrsystemSerialCode qrsystemSerialCode);

    int update(@Param("sql") String sql);

    Long queryCreateDateMaxId();

    Long queryUpdateDateMaxId();

    Long queryCreateDateMinId();

    Long queryUpdateDateMinId();

    List<QrsystemSerialCode> querySerialCodeList(@Param("idList") List<Long> idList);

    List<QrsystemSerialCode> querySerialCodeCreateDateList(@Param("idList") List<Long> idList);

    List<QrsystemSerialCode> querySerialCodeUpdateDateList(@Param("idList") List<Long> idList);

    int updateLotNumber(@Param("id") Long id, @Param("lotNumber") String lotNumber);

    int updateSendOrderId(@Param("id") Long id, @Param("sendOrderId") String sendOrderId);
}
